Information processing apparatus, computer-readable storage medium, and method that generate a screen based on stored screen information and functional information

ABSTRACT

A printer driver includes an assigning unit that assigns a setting value based on storage location information specifying a storage location for each setting value; a compressing unit that converts each of the setting values thus assigned to have a format identifying each storage location, and generates compressed data therefrom; a storage unit that stores each piece of the compressed data compressed by the compressing unit in a storage location specified by the storage location information; a first decompressing unit and a second decompressing unit that decompress the compressed data stored in the storage location; a setting window displaying unit that displays a print setting window using each of the setting values obtained by decompression performed by the first decompressing unit; and a print data generating unit that generates print data using each of the setting values obtained by decompression performed by the second decompressing unit.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. Ser. No. 14/162,516, filedJan. 23, 2014, which is a continuation of U.S. Ser. No. 13/834,754,filed Mar. 15, 2013, now U.S. Pat. No. 8,654,388, issued Feb. 18, 2014,which is a continuation of Ser. No. 12/868,004, filed Aug. 25, 2010, nowU.S. Pat. No. 8,427,686, issued Apr. 23, 2013, which claims priority toand incorporates by reference the entire contents of Japanese PatentApplication No. 2009-211574 filed in Japan on Sep. 14, 2009 and JapanesePatent Application No. 2010-134857 filed in Japan on Jun. 14, 2010.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a printer driver, an informationprocessing apparatus, and a computer-readable recording medium recordingtherein a printer driver.

2. Description of the Related Art

Printers of different models have different functions, and sometimes anoption is added to extend such functions. For example, if a finisher isattached to or removed from the main body of a printer, a number ofusable functions increases or decreases. If the number of functionsincreases or decreases, an amount of information such as setting valuesthat a printer driver must store therein also increases or decreases.

To address such an issue, has been disclosed a technology for generatingdata that can be processed by a printer without the need for printerfunction extensions. For example, according to the technology disclosedin Japanese Patent Application Laid-open No. 2008-097574, in a datastructure storing therein print settings (for example, a Devmodestructure), an area is reserved for print setting values that are setbased on function setting information related to printer functions, andthe print setting values are assigned to the area. The function settinginformation is referred to when the printer-processable data isgenerated from the print setting values assigned to the data structure.The technology disclosed in Japanese Patent Application Laid-open No.2008-097574 can generate such data that can be processed by a printerwithout the need for printer function extensions by adopting such astructure.

In a conventional printer driver, setting values have always been storedin a data structure format, in the same manner as disclosed in JapanesePatent Application Laid-open No. 2008-097574.

However, this data structure has a format that stores data in a computerprogram, and its data structure is statically determined when it iscoded. Therefore, if the number of printer functions increases ordecreases, especially if the number increases, the data structure mustbe updated (re-designed). In other words, the data structure must bere-coded and re-compiled to extend the data structure storing thereinprint settings. Therefore, a modified printer driver must be re-createdand re-distributed to support the printer function extensions.

SUMMARY OF THE INVENTION

It is an object of the present invention to at least partially solve theproblems in the conventional technology.

According to an object of the present invention, there is provided aprinter driver including: an assigning unit that assigns a setting valuebased on storage location information specifying a storage location foreach setting value; a compressing unit that converts each of the settingvalues thus assigned to have a format identifying each storage location,and generates compressed data therefrom; a storage unit that stores eachpiece of the compressed data compressed by the compressing unit in astorage location specified by the storage location information; a firstdecompressing unit and a second decompressing unit that decompress thecompressed data stored in the storage location; a setting windowdisplaying unit that controls a display of a print setting window usingeach of the setting values obtained by decompression performed by thefirst decompressing unit; and a print data generating unit thatgenerates print data interpretable by a printer using each of thesetting values obtained by decompression performed by the seconddecompressing unit.

According to another aspect of the present invention, there is providedan information processing apparatus installed with a printer driver,wherein the printer driver includes: an assigning unit that assigns asetting value based on storage location information specifying a storagelocation for each setting value; a compressing unit that converts eachof the setting values thus assigned to have a format identifying eachstorage location, and generates compressed data therefrom; a storageunit that stores each piece of the compressed data compressed by thecompressing unit in a storage location specified by the storage locationinformation; a first decompressing unit and a second decompressing unitthat decompress the compressed data stored in the storage location; asetting window displaying unit that controls a display of a printsetting window using each of the setting values obtained bydecompression performed by the first decompressing unit; and a printdata generating unit that generates print data interpretable by aprinter using each of the setting values obtained by decompressionperformed by the second decompressing unit.

According to still another aspect of the present invention, there isprovided a computer-readable recording medium recording therein theprinter driver above described.

The above and other objects, features, advantages and technical andindustrial significance of this invention will be better understood byreading the following detailed description of presently preferredembodiments of the invention, when considered in connection with theaccompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic of an overall configuration of a printer systemaccording to a first embodiment of the present invention;

FIG. 2 is a block diagram of a configuration of a PC according to thefirst embodiment;

FIG. 3 is a schematic of a DEVMODE structure according to the firstembodiment;

FIG. 4 is a schematic of an example of layout information according tothe first embodiment;

FIG. 5 is a schematic of an example of a print setting window based onthe layout information illustrated in FIG. 4 and function informationillustrated in FIG. 7;

FIG. 6 is a schematic of an example of storage location informationaccording to the first embodiment;

FIG. 7 is a schematic of an example of function information according tothe first embodiment;

FIG. 8 is a flowchart for explaining an operation (setting) performed bya print setting module according to the first embodiment;

FIG. 9 is a flowchart for explaining an operation (displaying a GUI)performed by the print setting module according to the first embodiment;

FIG. 10 is a flowchart for explaining an operation performed by adrawing module according to the first embodiment;

FIG. 11 is a sequence diagram for explaining an operation performed bythe printer driver in response to a call for the print setting windowand a print request issued by an application according to the firstembodiment;

FIG. 12 is a schematic of a DEVMODE structure according to a secondembodiment of the present invention;

FIG. 13 is a schematic of an example of storage location informationaccording to the second embodiment;

FIG. 14 is a schematic of an example of layout information according tothe second embodiment;

FIG. 15 is a schematic of an example of function information accordingto the second embodiment;

FIG. 16 is a schematic of an example of a print setting window based onthe layout information illustrated in FIG. 14 and the functioninformation illustrated in FIG. 15 according to the second embodiment;

FIG. 17 is a flowchart for explaining an operation (setting) performedby a print setting module according to the second embodiment;

FIG. 18 is a flowchart for explaining an operation (displaying a GUI)performed by the print setting module according to the secondembodiment;

FIG. 19 is a flowchart for explaining an operation (executing Validationwithout displaying a GUI) performed by the print setting moduleaccording to the second embodiment; and

FIG. 20 is a flowchart for explaining an operation performed by adrawing module according to the second embodiment.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Printer systems according to exemplary embodiments of the presentinvention are described below in details with reference to theaccompanying drawings.

First Embodiment

Overall Configuration of Printer System

FIG. 1 is a schematic of an overall configuration of a printer systemaccording to a first embodiment of the present invention. As illustratedin FIG. 1, in the first embodiment, a personal computer (PC) 100 and aprinter 150 are connected via a network 160. The printer 150 executesprinting in response to a print request issued by the PC 100.

Configuration of PC 100

FIG. 2 is a block diagram of a configuration of the PC 100. Asillustrated in FIG. 2, the PC 100 includes a processing unit 101, astorage unit 102, and a communicating unit 103. The processing unit 101includes a central processing unit (CPU), not illustrated, as acontroller, and a set of memories including a read-only memory (ROM) anda random access memory (RAM) functioning as a main memory. When the PC100 is booted and executed, an application 104, an operating system (OS)105, and various drivers (only a printer driver 106 is illustrated inFIG. 2) are loaded from the ROM and the storage unit 102 onto the mainmemory and expanded thereon, and executed by the CPU. The PC 100 has ahardware configuration of a common computer with an input device such asa keyboard or a mouse, and an output device such as a display, which arenot illustrated in FIG. 2 for simplicity of explanations.

The functional blocks included in the printer driver 106 illustrated inFIG. 2 represent main functions or units that implement controls of theprinter 150.

The communicating unit 103 exchanges information with the printer 150connected through the network 160.

The application 104 is a software allowing a user to give a printinstruction. If the user wishes to print data edited on the application104, the application 104 accepts the printer instruction issued by theuser. At this time, the application 104 does not generate print data tobe sent to the printer 150 alone, but passes information to be printedand a print request corresponding to the print instruction to the OS105.

The OS 105 is a computer program for managing hardware and software onthe PC 100. The OS 105 performs controls such as starting a computerprogram, reading or storing information, and the like. Well-knownexamples of the most typical OSes include Microsoft Windows (registeredtrademark) and UNIX (registered trademark). The OS 105 passesinformation to be printed (e.g., document data or image data) as well asthe print request received from the application 104 to the printerdriver 106.

The storage unit 102 is a storage for storing therein variousinformation. More specifically, the storage unit 102 is a hard diskdrive (HDD), for example. The information stored in the storage unit 102includes setting information defining information related to processesfor implementing the functions of the printer driver 106 (anyinformation required in the processes, such as setting values used forthe processes, or display information allowing the setting values to bechanged). Examples of the setting information include layoutinformation, storage location information, and function information. Inaddition, a DEVMODE structure and a registry provided by the OS 105 arealso stored in the storage unit 102.

The layout information is information describing a layout of a graphicaluser interface (GUI) component to be displayed on a setting widow. Thestorage location information is information specifying information aboutthe location where each of the setting values is stored. The functioninformation is information specifying information related to functions(specifications) of a connected printer, a range in which each of thesetting values is permitted to be set, or constraints among thesettings.

The printer driver 106 includes a print setting module 111 forcontrolling a user interface (UI), and a drawing module 112 forcontrolling drawing, as a set of modules for performing the functionsincluded in the driver.

The print setting module ill includes a setting window displaying unit121, an assigning unit 122, a character string generating unit 123, acompressing unit 124, a setting storage unit 125, a compressed dataobtaining unit 126, and a decompressing unit 127.

The setting window displaying unit 121 controls a display of a GUI(print setting window) displayed on a monitor screen as a UI. Thesetting window displaying unit 121 according to the first embodimentdisplays the print setting window based on the layout information storedin the storage unit 102. Upon displaying the print setting window, thesetting window displaying unit 121 displays GUI components only for thefunctions that are permitted to use, and the settings that are permittedto be set (a range of settings, setting values) under the constraints.

The assigning unit 122 refers to the storage location information, andassigns each of the setting values to a storage location specified inthe storage location information.

The character string generating unit 123 converts a setting valueassigned by the assigning unit 122 into a character string of a variablelength, which is a pair of the name and the value of the setting, foreach of the storage locations. For example, a character string such as{“Duplex”:“on”,“Orientation”:“portrait”, . . . } is generated. In thischaracter string, the name of a setting functions as an identifier forindentifying each of the setting values, or as an address of a settingvalue.

The compressing unit 124 compresses, by means of zipping for example,the character strings respectively corresponding to the storagelocations and generated by the character string generating unit 123, togenerate compressed data for each of the storage locations. Because thedata size is reduced by the compression, an increase in the size of thecompressed data stored in the DEVMODE structure, which is a datastructure of a fixed size, can be suppressed even if the number ofsetting values increases. Any type of compression schemes may be used.

The setting storage unit 125 stores each piece of the compressed datagenerated by the compressing unit 124 into each of the storage locations(in the registry or the DEVMODE structure). The DEVMODE structureincludes a public DEVMODE (public area) which is a fixed area whoseusage is determined by the OS 105, and a private DEVMODE (private area)which is a free area in which a creator of a driver can freely manageinformation. In the first embodiment, the compressed data stored in theDEVMODE structure is stored in the private area of the DEVMODEstructure.

The compressed data obtaining unit 126 reads the compressed data storedin the registry and the DEVMODE structure.

The decompressing unit 127 decompresses the compressed data obtained bythe compressed data obtaining unit 126 from the registry and the DEVMODEstructure, and expands the data onto an internal memory.

The drawing module 112 includes a compressed data obtaining unit 131, adecompressing unit 132, and a print data generating unit 133.

The compressed data obtaining unit 131 reads the compressed data storedin the registry and the DEVMODE structure.

The decompressing unit 132 decompresses the compressed data obtained bythe compressed data obtaining unit 131 from the registry and the DEVMODEstructure, and expands the data onto the internal memory.

The print data generating unit 133 validates print settings, whether thedecompressed print settings (current setting values) comply with theconstraints so as to generate print data that can be interpreted by theprinter 150 based on the validated print settings and the drawing datarequested to be printed by the application 104. The generated print datais transmitted to the printer 150 via the communicating unit 103.

The setting information (the layout information, the storage locationinformation, and the function information) will now be explained usingsome specific examples.

Layout Information

FIG. 4 is a schematic of an example of the layout information. In theexample of FIG. 4, only a part of the layout information is illustrated.The layout information illustrated in FIG. 4 is described in theJavaScript Object Notation (JSON) format, but may be described in anyother format.

As illustrated in FIG. 4, in the layout information, layout data isspecified for each GUI component to be displayed in the print settingwindow. The layout data has attributes of a type, a name, and an axis.

The type specifies a type of a GUI component. CheckBox, which is a valueof the type, specifies that the GUI component is displayed as a checkbox component. ComboBox specifies that the GUI component is displayed asa combo box component. SpinBox specifies that the GUI component isdisplayed as a spin box component. A GUI component may also be displayedas an edit box component or a list box component, although notillustrated, by specifying EditBox or ListBox in the type.

The name represents the name of a setting. Out of the values of thename, “duplex” indicates that the setting is for double-sided printing.“Orientation” indicates that the setting is for specifying anorientation of a print. “Copies” indicate that the setting is forspecifying the number of copies. “Papersize” or “layout”, notillustrated, may also be described to specify a setting for a paper sizeor an aggregate print setting.

The axis represents the coordinates at which the GUI component isdisplayed, where x, which is an attribute of the axis, indicates ahorizontal coordinate with the point of origin at the upper left cornerof the dialog box, and y, which is also an attribute of the axis,indicates a vertical coordinate with the point of origin at the upperleft corner of the dialog box. For example, the axis in the double-sidedprint setting (duplex) illustrated in FIG. 4 specifies that the checkbox component, specified by the type attribute, is displayed athorizontal position of 25 and a vertical position of 30.

The setting window displaying unit 121 reads the layout information fromthe storage unit 102, generates a setting window corresponding to theread layout information, and displays the generated print setting windowonto a display apparatus (not illustrated) on the PC 100. At this time,the print setting module 111 only displays those permitted to set basedon the function information, which is described later, among the GUIcomponents described in the layout information.

FIG. 5 is a schematic of an example of a print setting window displayedby the setting window displaying unit 121 included in the printer driver106, by reading the layout information illustrated in FIG. 4 and thefunction information illustrated in FIG. 7 explained later. Asillustrated in FIG. 5, the check box component is displayed under thedisplay name “Duplex” for the double-sided print setting, a combo boxcomponent is displayed under a display name “Orientation” for the printorientation setting, and a spin box component is displayed under adisplay name “Copies” for the number of copies setting. (Default settingvalues of the print orientation setting and the number of copies settingdepend on the function information that are to be described later). TheOK button illustrated in FIG. 5 is a button for storing the modifiedprint settings, and the Cancel button is for cancelling suchmodifications.

Storage Location Information

The storage location information describes therein informationspecifying a storage location for each of the setting values. FIG. 6illustrates an example of only a part of the storage locationinformation. In the example illustrated in FIG. 6, the storage locationinformation is described in the JSON format, but may be described in anyother format.

In the storage location information, the name of each of the settingsdescribed in sections under keys “registry” and “devmode” corresponds tothe name of each of the settings specified in the layout information andthe function information. The setting value corresponding to the name ofeach of the settings described under the key “registry” (finisher, hdd,fold . . . in the example illustrated in FIG. 6) is stored in theregistry. The setting value corresponding to the name of each of thesettings described under the key “devmode” (duplex, orientation, . . .in the example illustrated in FIG. 6) is stored in the DEVMODEstructure. The “finisher”, “hdd”, and “fold” represents a finisher, ahard disk, and a paper folder that are the functions included in theprinter 150.

Function Information

FIG. 7 is a schematic of an example of the function information. In FIG.7, to simplify explanations, only the double-sided printing (duplex),the print orientation setting (orientation), and the number of copiessetting (copies) are illustrated. However, the function information isthe information for specifying a range of a setting value permitted tobe set for each of the setting values, and constraints among thesettings. In practice, various types of information related to printing,such as a paper size setting or a stapling setting, is described in thefunction information. The function information illustrated in FIG. 7 isdescribed in the Extensible Markup Language (XLM) format, but may bedescribed in any other format (e.g., JSON).

In the example of the function information illustrated in FIG. 7, eachpiece of setting information is defined by a “feature” tag. The“feature” tag has attributes of a name, a default, and a type. Needlessto say, the example illustrated in FIG. 7 is just an example, and otherattributes can also be defined and used.

The attribute “name” represents the name of a setting, and correspondsto the “name” in the layout information. In the example illustrated inFIG. 7, the value “duplex” in the attribute “name” specifies that thesetting is for double-sided printing. The value “orientation” specifiesthe print orientation setting. The value “copies” specifies the numberof copies setting. The attribute “default” specifies an initial valueamong alternatives. The attribute “type” specifies the format in which asetting value is input. “pickone”, which is a value in the “type”,specifies an alternative format. In addition to the “pickone”, “string”for specifying an input format in a character string, or “number” forspecifying an input format in a number is available.

The “pickone” tag indicates that the setting values can be selected, andsuch setting values are specified under the attribute “name” in the“pickone” tag. In the print orientation setting, the attribute “pickonename” of the “pickone” takes a value “portrait” representing a verticalorientation, or a value “landscape” representing a horizontalorientation. In the double-sided printing, “off” represents that thefunction is OFF, and “on” represents that the function is ON. In thenumber of copies setting, “min” represents the minimum number of copies,and “max” represents the maximum number of copies.

A “constraint” tag, which is not illustrated, may be specified in thepart enclosed by the “feature” tags. A part described using the“constraint” tags specifies information about a constraint in a settingenclosed by the “feature” tags, which is a parent tag (example:<constraint fixvalue=“off”>). The “fixvalue”, which is an attribute inthe “constraint” tag, allows a setting value to be changed forciblythereto when a constraining condition is met (“off” in the exampleabove).

A constraining condition can be specified using a “condition” tag in thepart enclosed by the “constraint” tags (example: <conditionexpression=“AAAA!=“on”>). The “condition” tag specifies a constrainingcondition for the “constraint” tag, which is a parent tag. An attribute“expression” may be used to specify the condition (in the example above,the condition is met when a setting AAAA takes a value other than “on”).The “constraint” tag may also be specified in a part enclosed by the“pickone” tags, and in a “pickone” tag itself, in other words, thealternatives themselves can have the constraint information.

As described above, the function information specifies information formanagements that should be performed by the printer driver 106 inrelation to each of the print-related settings. The function informationis provided for each supported model of a printer, and describes allfunctions included in each of the printers, including options thereof.The print setting module 111 and the drawing module 112 refer to thefunction information upon determining the functions that are permittedto use or upon validating the setting values (current values).

Operation (Setting) Performed by Print Setting Module 111

An operation (setting) performed by the print setting module 111included in the printer driver 106 according to the first embodimentwill now be explained with reference to FIG. 8. FIG. 8 is a flowchart ofthe operation (setting) performed by the print setting module 111.

To begin with, a working area for temporarily storing therein settingvalues and the like is reserved in the internal memory on the PC 100(Step S801).

When a user makes an operation to launch the print setting window, thesetting window displaying unit 121 causes the print setting window (GUI)to be displayed on the display apparatus (not illustrated) connected tothe PC 100 (Step S802).

The setting window displaying unit 121 then accepts a setting operationof setting values (e.g., a change in a setting) performed by the uservia the displayed print setting window (GUI) (Step S803).

The input setting values are then stored in the internal memory on thePC 100 (Step S804).

If the user operation is ended (for example, if the “OK” button ispressed on the print setting window illustrated in FIG. 5) (YES at StepS805), the system control proceeds to Step S806. If not (NO at StepS805), the system control goes back to Step S803, and continuesaccepting a setting operation of the user.

At Step S806, the assigning unit 122 refers to the storage locationinformation, and assigns each of the setting values to the storagelocation (the registry or the DEVMODE structure) associated to the nameof the setting. In other words, in the storage location information suchas the one illustrated in FIG. 6, a setting value corresponding to thename of a setting specified in the section under the key “registry” isassigned to the registry as its storage location, and a setting valuecorresponding to the name of a setting specified in the section underthe key “devmode” is assigned to the DEVMODE structure as its storagelocation.

The character string generating unit 123 then converts each of thesetting values stored in the registry and each of the setting valuesstored in the DEVMODE structure into character strings (Step S807).

The compressing unit 124 then compresses the setting values convertedinto character strings by means of zipping, for example (Step S808).

The setting storage unit 125 then stores the compressed setting values(compressed data) in the respective storage locations (the registry andthe DEVMODE structure) (Step S809).

The setting operations performed by the print setting module 111 of theprinter driver 106 are as explained above.

Operation (Displaying GUI) Performed by Print Setting Module 111

An operation (displaying a GUI) performed by the print setting module111 included in the printer driver 106 according to the first embodimentwill now be explained with reference to FIG. 9. FIG. 9 is a flowchart ofthe operation (displaying a GUI) performed by the print setting module111.

To begin with, the compressed data obtaining unit 126 determines if thecompressed data according to the first embodiment is present in theprivate area of the DEVMODE structure (abbreviated as DEVMODE in FIG. 9and hereinafter). If it is present (YES at Step S901), the systemcontrol proceeds to Step S902. If not (NO at Step S901), the systemcontrol proceeds to Step S903.

At Step S902, the compressed data obtaining unit 126 obtains thecompressed data of the setting values stored in the DEVMODE structure.

At Step S903, the compressed data obtaining unit 126 determines if thecompressed data according to the first embodiment is present in theregistry. If it is present (YES at Step S903), the system controlproceeds to Step S904. If it is not present (NO at Step S903), thesystem control proceeds to Step S905.

At Step S904, the compressed data obtaining unit 126 obtains thecompressed data of the setting values stored in the registry.

The decompressing unit 127 then decompresses the compressed dataobtained at Step S902 and Step S904, and expands the data onto theinternal memory (Step S905).

The setting window displaying unit 121 then displays the print settingwindow (GUI) by using the setting values expanded on the internal memory(Step S906). At the time thereafter, a user can change the settingvalues already set via the print setting window. The GUI is displayedusing the default setting values at the initial setting. When the printsetting window is displayed, the GUI components are displayed only forthe functions permitted to be used under the constraints, and for thesettings permitted to be set (the range of the settings, the settingvalues) based on the function information. The functions permitted to beused under the constraints, and settings permitted to be set (the rangeof the settings, the setting values) are determined by way of validationperformed based on the function information.

The operation performed by the print setting module 111 in the printerdriver 106 upon displaying the print setting window again is asexplained above.

Operation Performed by Drawing Module 112

An operation performed by the drawing module 112 included in the printerdriver 106 according to the first embodiment will now be explained withreference to FIG. 10. FIG. 10 is a flowchart of the operation performedby the drawing module 112. In the explanation below, it is assumed thatthe drawing module 112 has already accepted the drawing data, as well asthe print request, from the application 104.

To begin with, the compressed data obtaining unit 131 determines if thecompressed data according to the first embodiment is present in theprivate area of the DEVMODE structure. If it is present (YES at StepS1001), the system control proceeds to Step S1002. If it is not present(NO at Step S1001), the system control proceeds to Step S1003.

At Step S1002, the compressed data obtaining unit 131 obtains thecompressed data of the setting values stored in the DEVMODE structure.

The compressed data obtaining unit 131 then determines if the compresseddata according to the first embodiment is present in the registry. If itis present (YES at Step S1003), the system control proceeds to StepS1004. If it is not present (NO at Step S1003), the system controlproceeds to Step S1005.

At Step S1004, the compressed data obtaining unit 131 obtains thecompressed data of the setting values stored in the registry.

The decompressing unit 132 then decompresses the compressed dataobtained at Step S1002 and Step S1004 respectively, and expands the dataonto the internal memory (Step S1005).

The print data generating unit 133 then generates the print datainterpretable by the printer 150 based on the setting values (currentvalues) expanded on the internal memory and reflected with theconstraints specified in the function information, and the drawing datareceived from the application 104 (Step S1006).

Finally, the print data generating unit 133 transmits the generatedprint data to the printer 150 (Step S1007).

The operation performed by the drawing module 112 included in theprinter driver 106 is thus explained above.

An internal operation performed by the printer driver 106 in response toa call for the print setting window and a print request issued by theapplication 104 will now be explained with reference to the sequencediagram in FIG. 11, in association with an operation of the application104. The operations performed by the print setting module 111 and thedrawing module 112 are mainly executed by the setting window displayingunit 121, the assigning unit 122, the character string generating unit123, the compressing unit 124, the setting storage unit 125, thecompressed data obtaining unit 126, the decompressing unit 127, thecompressed data obtaining unit 131, the decompressing unit 132, and theprint data generating unit 133.

In response to the user issuing a print setting request to the printer150, the application 104 issues a call for the print setting window tothe print setting module 111 to cause the print setting window, allowingthe user to perform the print setting for the printer 150, to bedisplayed (t1).

Upon receiving the call for the print setting window from theapplication 104, the print setting module 111 generates the settingwindow for allowing the user to provide various settings to thefunctions of the printer 150, based on the layout information and thefunction information, and displays the setting window onto the displayunit (not illustrated) on the PC 100 (t2). At this time, as describedearlier, the GUI components are displayed only for the functionspermitted to be used under the constraints, and for the settingspermitted to be set (the range of the settings, the setting values)based on the function information.

The print setting module 111 then accepts the print setting values forthe printer 150, input by the user via the print setting window (t3).

When the user completes entering the print settings (for example, whenthe OK button is pressed in the print setting window), the print settingmodule 111 refers to the storage location information stored in thestorage unit 102, and assigns the setting values entered by the user tothe respective storage locations (the registry and the DEVMODEstructure) (t4).

In the print setting module 111, the setting values assigned at t4 areconverted into character strings for each of the assigned locations(t5), and the setting values converted into the character string iscompressed by way of zipping, for example (t6).

The compressed setting values (compressed data) are respectively storedin their storage locations (the registry and the DEVMODE structure)(t7).

The print setting module 111 then sends back the DEVMODE structure inwhich the compressed data is returned to the application 104 (t8).

When the user subsequently issues a print request on the application 104for the printer 150, the application 104 accepts the print request (t9),and the print request is transferred from the application 104 to thedrawing module 112 (t10). At this time, the drawing data is sent alongwith the print request.

Upon receiving the print request, the drawing module 112 reads thecompressed data stored in the registry and the DEVEMODE structure, toobtain the compressed data respectively (t11).

The drawing module 112 then decompresses the obtained compressed dataand expands the data onto the internal memory (t12).

The drawing module 112 then refers to the function information for theprinter 150 stored in the storage unit 102, validates the expandedsetting values (current values), and reflects the constraints specifiedin the function information to the setting values (current values). Thedrawing module 112 then generates the print data that can be interpretedby the printer 150 from the setting values and the drawing data (t13).

The generated print data is then transmitted from the drawing module 112to the printer 150 via the communicating unit 103 (t14).

After transmitting the print data, the drawing module 112 transmits anotification of completion of the print data transmission to theapplication 104 (t15).

Upon receiving the notification of completion of the print datatransmission from the drawing module 112 (t15), the application 104 endsprinting process (t16).

The internal operation performed by the printer driver 106 in responseto the call for the print setting window and the print request issued bythe application 104 is thus explained above in association with theoperation of the application 104.

As described above, in the first embodiment, each of the setting valuesrelated to the print settings is paired with the name of the setting soas to be converted into a character string of a variable length,compressed, and stored (especially in a data structure such as theDEVMODE structure). In this manner, even if the number of setting valuesto be stored is increased along with an increase in a function of theprinter (as long as such an increase is not an extreme one), the size ofthe data structure (DEVMODE structure) storing therein the setting valuedoes not need to be changed, unlike the conventional example. In otherwords, the data structure does not have to be re-designed, and theprinter driver 106 does not need to be re-created. Furthermore, becauseeach of the setting values is paired with the name of the setting as acharacter string, the setting values can be extracted easily after thecompressed data is decompressed.

Second Embodiment

A second embodiment of the present invention will now be explained withreference to FIGS. 12 to 20. A hardware configuration according to thesecond embodiment is the same as that according to the first embodiment.Therefore, only the elements that are different from those in the firstembodiment are explained below.

DEVMODE Structure

FIG. 12 is a schematic of a DEVMODE structure according to the secondembodiment. As illustrated in FIG. 12, PrivateDEVMODE, which is theprivate area in the DEVMODE structure, is divided into a core area and aplugin area. Setting values before a plug-in extension is added arestored in the core area. Setting values after a plug-in extension isadded are stored in the plugin area. Therefore, the storage locationinformation according to the second embodiment will be as explainedbelow.

Storage Location Information

Storage location information describes information specifying a storagelocation for each of the setting values, in the same manner as in thefirst embodiment. In FIG. 13, only a part of the exemplary storagelocation information is illustrated. In the example illustrated in FIG.13, the storage location information is described in the JSON format,but may be described in any other format.

The names of the settings specified in the sections under the keys“registry”, “devmode”, and “plug-in” in the storage location informationcorrespond to the settings specified in the layout information and thefunction information (see FIGS. 14 and 15). The setting valuecorresponding to the name of each of the settings described under thekey “registry” (finisher, hdd, fold . . . in the example illustrated inFIG. 13) is stored in the registry. The setting value corresponding tothe name of each of the settings described under the key “devmode”(duplex, orientation, . . . in the example illustrated in FIG. 13) isstored in the core area in the DEVMODE structure. The setting valuecorresponding to the name of each of the settings described under thekey “plug-in” (watermark_text, watermark_color, . . . in the exampleillustrated in FIG. 13) is stored in the plugin area in the DEVMODEstructure. In the explanation of the second embodiment, a function forprinting a watermark is added by means of a plug-in; however, anyfunction may be added by means of a plug-in.

In this manner, the keys “registry”, “devmode”, and “plug-in” are usedto specify storage locations. The setting values corresponding to thenames of settings described under these keys are respectively stored inthe storage locations specified by these keys. The “watermark_text” and“watermark_color” respectively correspond to a text to be printed as awatermark and a color of the text.

In the exemplary layout information illustrated in FIG. 14, layout datafor the watermark text setting and layout data for the watermark colorsetting are additionally provided in the layout information illustratedin FIG. 4 according to the first embodiment, as sections for describinglayout data for GUI components (combo boxes in the example illustratedin FIG. 14) allowing the user to set a text to be printed as a watermarkand a color of the text, and corresponding to watermark_text andwatermark_color.

In the exemplary function information illustrated in FIG. 15, settinginformation corresponding to watermark_text and watermark_color is addedto the function information illustrated in FIG. 7 according to the firstembodiment, so as to provide definitions of watermark_text andwatermark_color. In the example illustrated in FIG. 15, the functioninformation specifies selectable setting values that can be selected onthe GUI components (combo boxes in this example) for selecting a text tobe printed as a watermark and a color of the text (in the exampleillustrated in FIG. 15, “top secret”, “confidential”, and so on aredefined as alternatives for a watermark text, and “gray”, “red”, and soon are defined as alternatives for a watermark color). FIG. 16 is aschematic of an exemplary print setting window displayed by the settingwindow displaying unit 121 included in the printer driver 106 by readingthe layout information and the function information respectivelyillustrated in FIGS. 14 and 15. The alternatives and default settingvalues provided in the print setting window are determined by thefunction information.

Operation (Setting) Performed by Print Setting Module 111

An operation (setting) performed by the print setting module 111included in the printer driver 106 according to the second embodimentwill now be explained.

The operation performed by the print setting module 111 according to thesecond embodiment is different from the operation performed by the printsetting module 111 according to the first embodiment in specific stepsperformed at Steps S806 to S808 illustrated in FIG. 8. The basic flow ofthe operation is the same as the one illustrated in FIG. 8. Therefore,Steps S806′ to S808′ (FIG. 17) performed by the print setting module 111according to the second embodiment corresponding to Steps S806 to S808illustrated in FIG. 8 will be explained below in detail.

The second embodiment is the same as the first embodiment in that theassigning unit 122 refers to the storage location information, andassigns each of the setting values to the storage location associatedwith the name of the setting. However, because the private area of theDEVMODE structure, which is a storage location, is divided into the corearea and the plugin area, there are three storage locations, theregistry, the core area and the plugin area in the private area of theDEVMODE structure in the second embodiment, unlike two storagelocations, the registry and the private area of the DEVMODE structure inthe first embodiment. However, in the second embodiment, at Step S806′,the assigning unit 122 refers to the storage location information, andassigns each of the setting values to the storage location associated tothe name of the setting (the registry, or the core area or the pluginarea in the DEVMODE structure), following the keys (“registry”,“devmode”, and “plugin”) specified in the storage location information.

At Step S807′, the character string generating unit 123 converts thesetting values stored in the registry, the core area, and the pluginarea in the DEVMODE structure into character strings, respectively.

At Step S808′, the compressing unit 124 compresses each of the settingvalues converted into a character string corresponding to each of thestorage locations by way of zipping, for example. The compressed datathus generated is then stored in the corresponding storage locations.

Operation (Displaying GUI) Performed by Print Setting Module 111

The operation (displaying a GUI) performed by the print setting module111 included in the printer driver 106 according to the secondembodiment (FIG. 18) is different from the operation performed by theprint setting module 111 according to the first embodiment in that thecompressed data is obtained from three areas, that is, from theregistry, the core area, and the plugin area, because the private areaof the DEVMODE structure, which is a storage location, is divided intothe core area and the plugin area. In other words, according to thesecond embodiment, the compressed data is obtained from the core areaand the plugin area in the DEVMODE structure (Step S902′) during thestep corresponding to Step S902 according to the first embodimentillustrated in FIG. 9. The remaining steps are the same as thoseaccording to the first embodiment.

Unlike the example described below, in which a plug-in extension is madebut any compressed data in the plugin area is not required in theoperation, the operation explained herein requires the compressed datain the plugin area. Therefore, the compressed data is obtained from thecore area and the plugin area in the DEVMODE structure. If a plug-inextension is not made, or if a plug-in extension having no setting valueis made, no compressed data is stored in the plugin area. Therefore, thecompressed data would be obtained only from the core area.

Operation (Executing Validation without Displaying GUI) Performed byPrint Setting Module 111

Some commands passed from the application to the printer driver causethe print setting module 111 to display GUI, and some do not. Somecommands also do not require any compressed data in the plugin area(including information about the setting values). As an example of suchan operation, a validating operation performed by the print settingmodule 111, without causing a GUI to be displayed, is illustrated inFIG. 19.

One of the differences between the operation illustrated in FIG. 19 andthe above-described operation (displaying a GUI) performed by the printsetting module 111 is that the print setting module 111 obtains thecompressed data only from the core area but not from the plugin area atStep S902″ as illustrated in FIG. 19, corresponding to Step S902′explained above. This kind of operations is performed, for example, whena plug-in not requiring the setting values thereof to be processed (tobe validated, in this example) is used. In such a configuration, theprint setting module 111 obtains the compressed data only from the corearea even when a plug-in is installed. Because some commands issued bythe application do not require the compressed data stored in the pluginarea, only necessary data stored in the core area is obtained in thisexemplary operation, even if the compressed data is stored in both ofthe core area and the plugin area. In this manner, speed performance isimproved, compared with a configuration in which the compressed data isobtained from both of the core area and the plugin area.

Another difference is that only validation is performed withoutdisplaying a GUI at Step S1906 in FIG. 19 corresponding to Step S906illustrated in FIG. 18. This validation is performed to determine thefunctions permitted to use, and the settings permitted to be specified(the range of the settings, the setting values) under the constraints.Other steps are the same as those illustrated in FIGS. 9 and 18.

The operations performed by the print setting module 111 are not limitedto the examples explained above. The operations performed by the printsetting module 111 are not limited to the examples explained withreference to FIGS. 18 and 19, and, if the application issues a commandnot requiring the setting values that are added when the functions areextended by means of a plug-in, speed performance can be improved byallowing the print setting module 111 to obtain the data only from thecore area during a process corresponding to such a command.

Operation Performed by Drawing Module 112

An operation performed by the drawing module 112 included in the printerdriver 106 according to the second embodiment is different from theoperation performed by the drawing module 112 included in the printerdriver 106 according to the first embodiment in that the compressed datais obtained from three areas, the registry, the core area, and theplugin area, because the private area in the DEVMODE structure, which isa storage location, is divided into the core area and the plugin area.In other words, at a step corresponding to Step S1002 according to thefirst embodiment illustrated in FIG. 10, the compressed data is obtainedfrom both of the core area and the plugin area in the DEVMODE structure(Step S1002′). Other steps are the same as those in the flowchart inFIG. 10 according to the first embodiment. If no plug-in extension ismade, or if a plug-in extension not accompanying any setting value ismade, the compressed data is obtained only from the core area because nocompressed data is stored in the plugin area.

The series of steps explained above with reference to FIG. 11 andperformed by the printer driver according to the first embodiment inresponse to a call for the print setting window and a print requestissued by the application are the same in the second embodiment.

The differences between the first and the second embodiment are thusexplained above. In the second embodiment as well, each of the settingvalues related to print settings (especially those stored in the datastructure such as the DEVMODE structure) is paired with the name of thesetting to be converted into a character string of a variable length,and the character string is compressed and stored, in the same manner asin the first embodiment. In the second embodiment, however, the storagelocation for the compressed data in the data structure (the DEVMODEstructure) is divided into two areas (the core area and the pluginarea), and the setting values before a plug-in extension is made arestored in the core area, and the setting values added when the functionsare extended by means of a plug-in are stored in the plugin area. Inthis configuration, even if the functions are extended by means of aplug-in, the performance in speed can be improved by obtaining the dataonly from the core area when the setting values added when the functionsare extended by means of a plug-in are not required.

The printer driver 106 according to the embodiments is recorded in aninstallable or an executable format and made available in acomputer-readable recording medium such as a compact disk read-onlymemory (CD-ROM), a flexible disk (FD), a compact disk recordable (CD-R),or a digital versatile disk (DVD).

These computer programs may also be stored in a computer connected to anetwork such as the Internet, and made available for download over thenetwork.

According to the present invention, even when the number of settingvalues is increased correspondingly to an increased number of printerfunctions, the setting values can be stored without changing the size ofthe data structure storing therein the setting values. Therefore, it isnot necessary to re-design the data structure storing therein settingvalues, re-code and re-compile a printer driver, or re-distribute amodified printer driver.

Although the invention has been described with respect to specificembodiments for a complete and clear disclosure, the appended claims arenot to be thus limited but are to be construed as embodying allmodifications and alternative constructions that may occur to oneskilled in the art that fairly fall within the basic teaching herein setforth.

What is claimed is:
 1. An information processing apparatus that isconnectable to a network to which an image forming apparatus isconnected, and that requests the image forming apparatus to perform aprinting process, the information processing apparatus comprising:circuitry that displays a screen for receiving settings relating to theprinting process on a display device, stores, in a memory, screeninformation and functional information, the screen informationassociated with a display of a display part for receiving the settingsrelating to the printing process which is used for generating the screencorresponding to the image forming apparatus and the functionalinformation associated with a plurality of functions of the imageforming apparatus, generates the screen for receiving the settingsrelating to the printing process corresponding to the plurality offunctions of the image forming apparatus by the display part which isindicated by the screen information based on the screen information andthe functional information corresponding to the image forming apparatusthat is requested of the printing process, and displays the screen thatis generated on the display device.
 2. The information processingapparatus according to claim 1, wherein the circuitry transforms thesettings relating to the printing process requested for the imageforming apparatus into a predetermined format, and stores, in thememory, the settings relating to the printing process transformed intothe predetermined format.
 3. The information processing apparatusaccording to claim 2, wherein the circuitry transforms the settingsrelating to the printing process requested for the image formingapparatus into a format of a character string.
 4. The informationprocessing apparatus according to claim 2, wherein the memory storestherein storage location information for indicating storage locations ofrespective settings relating to the printing process, and the circuitrystores the settings relating to the printing process transformed intothe predetermined format in the storage locations indicated by thestorage location information which is stored in the memory.
 5. Theinformation processing apparatus according to claim 4, wherein thestorage locations are at least one of a registry and a DEVMODEstructure.
 6. The information processing apparatus according to claim 1,wherein the screen information includes an attribute of at least one ofdisplay parts to be displayed in the screen.
 7. The informationprocessing apparatus according to claim 6, wherein the attribute is atleast one of a type of the display part, a name of the display part anda display location at which the display part is displayed on the screen.8. A non-transitory computer-readable recording medium that storestherein a computer program for controlling a printing process, whereinan image processing apparatus is connectable to a network to which animage forming apparatus is connected, and requests the image formingapparatus to perform the printing process, the computer program causinga computer to execute: displaying a screen for receiving settingsrelating to the printing process on a display device; storing, in amemory, screen information and functional information, the screeninformation associated with a display of a display part for receivingthe settings relating to the printing process which is used forgenerating the screen corresponding to the image forming apparatus andthe functional information associated with a plurality of functions ofthe image forming apparatus; generating the screen for receiving thesettings relating to the printing process corresponding to the pluralityof functions of the image forming apparatus by the display part which isindicated by the screen information based on the screen information andthe functional information corresponding to the image forming apparatusthat is requested of the printing process, wherein the displayingincludes displaying the screen generated by the generating on thedisplay device.
 9. The non-transitory computer-readable recording mediumaccording to claim 8, the computer program causing the computer tofurther execute: transforming the settings relating to the printingprocess requested for the image forming apparatus into a predeterminedformat; and storing, in the memory, the settings relating to theprinting process transformed into the predetermined format.
 10. Thenon-transitory computer-readable recording medium according to claim 9,wherein the transforming includes transforming the settings relating tothe printing process requested for the image forming apparatus into aformat of a character string.
 11. The non-transitory computer-readablerecording medium according to claim 9, wherein storage locationinformation for indicating storage locations of respective settingsrelating to the printing process is stored in the memory, and thestoring includes storing the settings relating to the printing processtransformed into the predetermined format at the transforming in thestorage locations indicated by the storage location information which isstored in the memory.
 12. The non-transitory computer-readable recordingmedium according to claim 11, wherein the storage locations are at leastone of a registry and a DEVMODE structure.
 13. The non-transitorycomputer-readable recording medium according to claim 8, wherein thescreen information includes an attribute of at least one of displayparts to be displayed in the screen.
 14. A display method employed in aprinting system for requesting an image forming apparatus to perform aprinting process via a network, the display method comprising:displaying a screen for receiving settings relating to the printingprocess on a display device; storing, in a memory, screen informationand functional information, the screen information associated with adisplay of a display part for receiving the settings relating to theprinting process which is used for generating the screen correspondingto the image forming apparatus at the displaying and the functionalinformation associated with a plurality of functions of the imageforming apparatus; generating the screen for receiving the settingsrelating to the printing process corresponding to the plurality offunctions of the image forming apparatus by the display part which isindicated by the screen information based on the screen information andthe functional information corresponding to the image forming apparatusthat is requested of the printing process, wherein the displayingincludes displaying the generated screen on the display device.